import java.awt.image.BufferedImage;

public class SheepPlane extends Plane{

    int waittime = 0;
    boolean isready = false;
    SheepPlane(){
        this.x = -99;
    }
    public BufferedImage getImage(){
        return  Images.sheepplane;
    }

    public void move(){
        //900
        if (x>900){
            isready = false;
        }
        //x小于0等待下一次投放

        if (x>1000){
            x = -99;
            waittime = 300;
        }
        //倒计时
        if (waittime>0)waittime--;
        //没有倒计时继续投放
        if (waittime==0){
            isready = true;
            x+=speed;
        }

    }
}
